package com.ruoyi.js.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 场地对象 js_place
 * 
 * @author greejoy
 * @date 2024-10-16
 */
public class JsPlace extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 裁判IDs */
    @Excel(name = "裁判IDs")
    private String judgeIds;

    /** 比赛ID */
    @Excel(name = "比赛ID")
    private Long matchId;

    public JsPlace(){}

    public JsPlace(Long matchId){
        this.matchId = matchId;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setJudgeIds(String judgeIds) 
    {
        this.judgeIds = judgeIds;
    }

    public String getJudgeIds() 
    {
        return judgeIds;
    }
    public void setMatchId(Long matchId)
    {
        this.matchId = matchId;
    }

    public Long getMatchId()
    {
        return matchId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("judgeIds", getJudgeIds())
            .append("matchId", getMatchId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 临时属性
    private String judgeNames;
    private List<JsRegister> registerList;

    public String getJudgeNames() {
        return judgeNames;
    }

    public void setJudgeNames(String judgeNames) {
        this.judgeNames = judgeNames;
    }

    public List<JsRegister> getRegisterList() {
        return registerList;
    }

    public void setRegisterList(List<JsRegister> registerList) {
        this.registerList = registerList;
    }
}
